]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
PopupMenu: restore the arrow when fast closing the menu
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 20 Dec 2010 17:11:53 +0000 (18:11 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 20 Dec 2010 17:16:59 +0000 (18:16 +0100)
When closing a submenu because the parent is closing, we skip the
animation, but we need to restore the arrow anyway.

js/ui/popupMenu.js

index d493c75b9337f2de8840c5a3edcb4cbaaa8df8e7..190f24a4e308f1478dcb2edf13dc99e000bd311f 100644 (file)
@@ -909,6 +909,7 @@ PopupSubMenu.prototype = {
         if (this._activeMenuItem)
             this._activeMenuItem.setActive(false);
 
+        this._arrow.rotation_angle_z = 0;
         this.actor.hide();
 
         this.isOpen = false;